package com.yun.lc.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.List;
import java.util.Map;
import java.util.Set;


public class DBTestDriver {
    public static void main(String[] args) {
        doQuryByDBProvider();
    }

    public static void doQuryByDBProvider() {
        System.out.println("========================jdbc连接数据库操作============================");

        String strSql = "SELECT * FROM jsp_user";
        List<Map<String, Object>> list = DBProvider.query4ListMap(strSql);


        for (Map<String, Object> mapEachRow : list) {

            Set<Map.Entry<String, Object>> setEn = mapEachRow.entrySet();

            for (Map.Entry en : setEn) {
                System.out.print("    " + en.getValue());
            }
            System.out.println();
        }

    }


}